import * as cheerio from 'cheerio';
import axios from 'axios';

async function main() {
  const resp = await axios.get('https://baidu.com');
  const $ = cheerio.load(resp.data);
  $('#s-top-left .mnav').each( (i, elem)=> {
    console.log($(elem).text());
  })
}
main()